#include "ColorState.h"
ColorState::ColorState(double r,double g,double b,boolean glide,int milisec)
{
   _red   = r;
   _blue  = b;
   _green = g;
   _glide = glide;
   _time = milisec;
}
double ColorState::getBlue()
{
    return _blue;
}
void ColorState::setBlue(double b)
{
   _blue = b;
}


double ColorState::getRed()
{
    return _red;
}
void ColorState::setRed(double r)
{
   _red = r;
}


double ColorState::getGreen()
{
    return _green;
}
void ColorState::setGreen(double g)
{
   _green = g;
}


boolean ColorState::getGlide()
{
    return _glide;
}
void ColorState::setGlide(boolean glide)
{
    _glide = glide;
}
boolean ColorState::operator==      ( ColorState& c)
{
    return (getRed()==c.getRed()) && (getBlue() == c.getBlue()) && ( getGreen()==c.getGreen());
}

void ColorState::setTime(int milisec)
{
  _time = milisec;
}

int ColorState::getTime()
{
  return _time;
}
void ColorState::print()
{
    Serial.print(_red);
    
}
